c++为什么编辑cout<<无效

来源:百度知道 编辑:UC知道 时间:2024/09/22 04:14:31
为什么我编辑C++的时候写cout<<无效
我用的是C++6.0企业版 输入cont颜色不是关键字(不会变蓝) 其他都会就是输入和输出关键字不行

#include <iostream>
using std::cout;

如果要使用cin和endl的话

那就再加
using std::cin;
using std::endl;

或者直接using namespace std;

cout 是函数
请问哪个函数是变蓝的。。。

要包含命名头文件
#include <iostream>
using namespace std;

你有没包含头文件 :
#include<iostream.h>
因为cout是包含在iostream.h里面的

#include <iostream>
using namespace std;

问题在讲具体些吧